<template>
  <div class="parent">
    <Headers :title="title" />
    <div class="content">
      <div class="top">
        <div class="left">
          <div class="title">
            <span class="icon iconfont icon-x"></span>
            <span class="titleName">待评价</span>
          </div>
          <div class="direction">
            <span class="direText">您的维修已经完成，快告诉我们您是否满意！</span>
          </div>
        </div>
        <div class="right">
          <img src="../../assets/img/timg.jpeg" alt="" class="img">
        </div>
      </div>
      <div class="headTitle">
        <span class="titleText">维修记录</span>
      </div>
      <div class="listContent">
        <ul class="list">
          <li class="listItem">
            <span class="term">处理人</span>
            <span class="termName">张三</span>
          </li>
          <li class="listItem">
            <span class="term">联系电话</span>
            <span class="termName termNameSp">18912344321</span>
          </li>
          <li class="listItem">
            <span class="term">更换了压缩机，设备恢复正常</span>
          </li>
        </ul>
      </div>
      <div class="headTitle">
        <span class="titleText">工单信息</span>
      </div>
      <div class="listContent">
        <ul class="list">
          <li class="listItem">
            <span class="term">处理人</span>
            <span class="termName">张三</span>
          </li>
          <li class="listItem">
            <span class="term">联系电话</span>
            <span class="termName termNameSp">18912344321</span>
          </li>
          <li class="listItem">
            <span class="term">房屋地址</span>
            <span class="termName">北京市门头沟区潭柘寺镇桑榆村楼区</span>
          </li>
          <li class="listItemSp">
            <span class="directionTitle">故障描述:</span>
            <textarea name="" id="" cols="30" rows="10" class="textarea" placeholder="请输入故障描述">我的机器坏了，不能制热，机器报了故障码“压缩机故障（10001）”</textarea>
          </li>
        </ul>
      </div>
      <div class="tree">
        <ul class="treeList">
          <li class="treeListItem">
            <div class="spot">
              <span class="spotS"></span>
            </div>
            <span class="treeName">2018-10-12 12:21:12 创建工单</span>
          </li>
          <li class="treeListItem">
            <div class="spot">
              <span class="spotS"></span>
            </div>
            <span class="treeName">2018-10-12 12:21:12 分配工单</span>
          </li>
          <li class="treeListItem">
            <div class="spot">
              <span class="spotS"></span>
            </div>
            <span class="treeName">2018-10-12 12:21:12 处理工单</span>
          </li>
        </ul>
      </div>
    </div>
    <div class="footers" @click="evaluateEvent">
      <span class="footerName">评价</span>
    </div>
  </div>
</template>
<script>
import Headers from '@/components/header-return'
import { Toast } from 'mint-ui'
export default {
  data () {
    return {
      title: '详情'
    }
  },
  components: {
    Headers
  },
  methods: {
    evaluateEvent () {
      Toast({
        message: '当前版本不可执行此操作，请联系4006-506-803开通正式版本',
        position: 'middle',
        duration: 2000
      })
    }
  }
}
</script>
<style scoped lang="scss">
.parent{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
}
.content{
  width: 100%;
  overflow:auto
}
.top{
  width: 100%;
  height: 80px;
  background: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  .left{
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    .title{
      width: 100%;
      height: 25px;
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      .titleName{
        font-size:16px;
        font-family:PingFangSC-Regular;
        font-weight:400;
        color:rgba(51,51,51,1);
      }
      .icon{
        font-size: 18px;
        color: #F08022;
        padding-right: 5px;
      }
    }
    .direction{
      width: 100%;
      height: 25px;
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      .direText{
        font-size:12px;
        font-family:PingFangSC-Regular;
        font-weight:400;
        color:rgba(153,153,153,1);
      }
    }
  }
  .right{
    width: 82px;
    height: 64px;
    .img{
      width: 100%;
      height: 100%;
    }
  }
}
.headTitle{
  width: 100%;
  height: 40px;
  background:rgba(59,139,251,0.1);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-left: 17px;
  .titleText{
    font-size:16px;
    font-family:PingFangSC-Regular;
    font-weight:400;
    color:rgba(51,51,51,1);
  }
}
.list{
  width: 100%;
  background: #fff;
  .listItem{
    width: 100%;
    height: 50px;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f4f4f4;
    .term{
      font-size:16px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(51,51,51,1);
    }
    .termName{
      font-size:16px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(102,102,102,1);
    }
    .termNameSp{
      font-size:16px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(59,139,251,1);
    }
  }
  .listItemSp{
    width: 100%;
    height: 140px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    .directionTitle{
      font-size:16px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(51,51,51,1);
    }
    .textarea{
      width: 100%;
      border: none;
      font-size:16px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(51,51,51,1);
    }
  }
}
.treeList{
  width: 100%;
  padding: 0 24px;
  margin: 10px 0;
  .treeListItem{
    width: 100%;
    height: 30px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    .spot{
      width: 20px;
      height: 20px;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      .spotS{
        width: 10px;
        height: 10px;
        background: #73AAF8;
        border-radius: 100%;
      }
    }
    .treeName{
      font-size:14px;
      font-family:PingFangSC-Regular;
      font-weight:400;
      color:rgba(153,153,153,1);
    }
  }
}
.footers{
  width: 100%;
  height: 48px;
  background: #3B8BFB;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  .footerName{
    font-size:18px;
    font-family:PingFangSC-Regular;
    font-weight:400;
    color:rgba(255,255,255,1);
  }
}
</style>
